package org.example.yidaiyilu.entity;

import java.util.ArrayList;
import java.util.List;

public class Shili {
    private String[] texts =null;


    public Shili(String text){
        texts = text.split("｜");

    }

    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("<示例>");
        if(texts!=null) {
            for (int i = 0; i < texts.length; i++) {
                sb.append("<例句>").append(texts[i].replace("※","").trim()).append("</例句>");
            }
        }
        sb.append("</示例>");
        return sb.toString();
    }
}
